export interface BaseResponseInterface<T = any> {
  code: number;
  message: string;
  data: T | object;
  z: string;
}

export type ResponseInterface<T> = Promise<BaseResponseInterface<T>>;

export type ResponseTypes = 'ok' | 'error' | 'warning';

export interface ResponseSuccessOptions {
  message?: string;
  data?: any;
}

export interface ResponseErrorOptions {
  message?: string;
  data?: any;
}

export interface ResponseWarningOptions {
  message?: string;
  data?: any;
}
